package cc11001100.snakeyaml;

import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author CC11001100
 */
public class SafeMain {

    public static void main(String[] args) throws IOException {

        String filepath = "config.yaml";
        Yaml yaml = new Yaml(new SafeConstructor());
        InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(filepath);
        Object o = yaml.load(inputStream);

    }

}
